import axios from '../axios/axios';
import md5 from 'js-md5'

function reqGetSalt(data = {}) {
    return axios.post('/api/userAccount/getSalt', data)
}
function reqLogin(mobilePhone: string, password: string, salt: string) {
    const params = {
      password:md5(password + salt),
      mobilePhone: mobilePhone
    }
    return axios.post('/api/userAccount/passwordLogin', params)
  }
export{
    reqGetSalt,
    reqLogin
}
